package ua.yandex.skipass;

import java.util.Calendar;

public abstract class SkiPass {
    private static int numberOfPasses;
    private final int id;
    private final PassType passType;

    SkiPass(PassType passType) {
        this.passType = passType;
        id = numberOfPasses;
        numberOfPasses++;
    }

    public abstract Calendar getExpirationDate();

    public abstract boolean validAt(Calendar someTime);

    public PassType getPassType() {
        return passType;
    }

    public int getId() {
        return id;
    };
}